package com.itheima.service;

import com.itheima.bean.Clases;
import com.itheima.bean.Student;
import com.itheima.mapper.ClasesIf;
import com.itheima.utils.Utils;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class ClasestoStudent_Service implements ClasesIf {

    @Override
    public List<Clases> selectAll() throws Exception{
        SqlSession sqlSession = Utils.getSqlSession();
        ClasesIf mapper = sqlSession.getMapper(ClasesIf.class);
        List<Clases> students = mapper.selectAll();
        return students;
    }
}
